package com.bolt.core.view.components;

import com.bolt.common.utils.StrUtil;

public class BindBaseModel {

    protected String queryParam;

    public String getQueryParam() {
        if (StrUtil.isNotBlank(queryParam)) {
            if (StrUtil.startWith(queryParam, "&")) {
                return queryParam;
            } else {
                return "&" + queryParam;
            }
        }
        return StrUtil.EMPTY;
    }

    public void setQueryParam(String queryParam) {
        this.queryParam = queryParam;
    }
}